//
//  BWFHomeViewController.swift
//  网易新闻项目
//
//  Created by 薄文飞 on 16/3/2.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class BWFHomeViewController: BWFVisitorViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        if !userLogon {
            
            visitorView.setPage(nil, textLabel: nil)
            return
        }
        
        navigationItem.leftBarButtonItem = UIBarButtonItem(imageName: "navigationbar_friendsearch", target: nil, action: nil)
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(imageName: "navigationbar_pop", target: self, action: "pop")
        
    }
    
    func pop() {
        
        let vc = BWFTempViewController()
        
        navigationController?.pushViewController(vc, animated: true)
    }
    
}
